# -*- coding: utf-8 -*-
import time
class Date:
    __obj__ = False
    def __init__(self):
           Date.__obj__ = self
    @staticmethod
    def getInstance ():
        #单例模式
        if(Date.__obj__):
            return Date.__obj__
        else:
            return Date()
    def getTime(self):
      return time.time()
    
    def getDate(self, format, date = time.time()):
       return time.strftime(format,time.localtime(date))
